package org.xin.framework.base.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.SuperBuilder;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;

import java.io.Serializable;

/**
 * @author ：xin
 * @date ：Created in 2021/9/29
 * @desc <p> 简易实体父级 </p>
 * @modified By：$
 * @version: $
 */
@Getter
@Setter
@ToString
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class IBaseSimpleEntity implements Serializable {
    private static final long serialVersionUID = 19990927L;

    @TableField("id")
    @TableId(type = IdType.UUID)
    protected String id;

    protected String description;

    @TableField(fill = FieldFill.INSERT)
    @CreatedDate
//    protected Date createTime;
    protected String createTime;

    @TableField(fill = FieldFill.UPDATE)
    @LastModifiedDate
//    protected Date  updateTime;
    protected String  updateTime;
}
